package com.gwt.theOne.theLocal.server;

import com.google.appengine.api.datastore.Key; 

import javax.jdo.annotations.IdGeneratorStrategy; 
import javax.jdo.annotations.PersistenceCapable; 
import javax.jdo.annotations.Persistent; 
import javax.jdo.annotations.PrimaryKey; 

@PersistenceCapable  
public class Location { 
	@PrimaryKey  
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
	private Key key; 

	@Persistent 
	private String name; 
	

	// constructor 
	public Location(String name) { 
		this.name = name; 
	} 

	// getter methods 
	public Key getKey() { 
		return this.key; 
	} 

	public String getName() { 
		return this.name; 
	} 

	// setter methods 
	public void setName(String name) { 
		this.name = name; 
	} 
}; 
